changing a querySelectorAll to getElementsByTagName