removed unused 'result' from check_host