collapseCells implemented