fix in check_input