some isnan checks, closer to gdp and appropriately scaled rate parameter for lambda2