adding KGNGradient