curve-and-gradient