tricktofindgroupandperiod