edited logarithm funcs