added negative input error check