remove unnecessary events