correct power func