cleaning the dom