add contract to the delete_cells method