Smoothing out the log in a dn sing up functions