rename matrix to array