added a little more error checking
if the value is too large let the user know what happened