rearraging the get_job_result method