it doesnt hurt checking for user input  errors