solving problems after 1st iteration