added grad desc, need to add contour geom