tried to make it wait for user input