replacing element() with subelement()