set group to nil if no group is defined