need to return after invalid input