correcting input checks