easy way to run gradient check