switch input checks