removing groups from object