check gradient zeros out