add the task closure