path correction in algos_new