optimize job building