update exponentiation