refactored so we can use one PruneCells()