changes to doJob method