human-machine task allocation