fix loop part2