remove extraneous param
simplify line to v
automatically determine cutoff point