fix exponent syntax (^ is xor, not power)