reverted pow funciton