changed byId back to byTagName