Removes wrong and unnecessary code from power()