stuck in while loop in second_pass