hook for calcLnL