reading the contents of cells and updating them