remove unnecessary DOM manipulation