print i in while loop