added getGroupDetails method