added getAllCells{} function