optimise linewith without centralisation
first halve finished rewrite DOM