last group to two groups when edit