use index() to get cellIndex and rowIndex