replace check_call by call