condensing logarithms with multiple parentheses