updated task structure