fixes in check_input