change the Algorithm of is_response_package