added group() method