worked on fixing the logN fitting