complete task group function