simplify a line