remove useless events