added select job function