getJob method improved