adding power function