accounting for different user inputs