group function updated