add rename group function