remove cells in the end