improve input code for consistency
cs