Corrected y to n in power function in Ad