group function modified