it was not the right algorithm