simplifying DOM structure