maxlikelihood method plus nllf methods