added method for user input