small DOM refactoring