reimplemented pow function

it didn't work without it