handling bad inputs