working diagonal third order stat gradient