fixing an issue with pow