changed a few things. had to comment the while loop isnt working right