removing one of the prints and including the other one into the loop