change in algorithm