deleted removeEvent function