fixed input check