integer overflow in pow()