added group.id function