revised LogNormal code -KL