add post derivative gradient