change grpfunc to func (liam0.7)