simplify a line clientside