implemented un/grouping