added group checking function