print statement in loop