update job function