added user input method