2d for logarithm