add tasks in their order