fix mistake of base of a logarithm