you don't use `task_index` here, so no need to use `enumerate`