a few code clean up of BasicMatrixValue analysis