fixed exponentiation so it wouldn't be so inaccurate