implement mle (becare about the difference between lg and log)