removing a boolean left out from the addEventListener definition