updated first example to use dom_el type