move subtasks to array in each task