migrating old DOM class to new DOMQuery class