finished logarithmic regression