removed duplication of method in DOM object