line-by-line giant gradient