initializing whileloop statement