should these two lines be reversed? would only matter if addEventListener could somehow fail of course