the lnlikelihood should be a scalar