added functionality to allow user to know group