worked on the reset_cells for selection