small input check fix