improved logLik method