an event listener would have been useful