made method for user input