added code to check group.