removing items that are sub-objects