worked on event listener bug