included exception handling if input is not an integer