adding grad phi, not done yet