change cells to dict