differentiate base from an exponent