started work on while loop