added jobs_for function