minor changes to check_inputs