optimize job assignment