removed end event listener