added function for epoll events