added execute_job function