oh the algorithm