fix indentation
make job_data a local variable