finish step 2 of alg.3