power functions for grad -- not working yet