removed check for getElementsByTagName