check gradient success