altered to use natural log