use querySelector instead of querySelectorAll