improve code readability
Merge pull request #1039 from mkoniecz/power

improve code readability