fixed pow calculation