error handling for non numeric input
more error handling for other commands