I realized that there is no need for a pwr function