logL.Mat added