evaluate exponents