fixes to pow()