updated alg 2 index