make removing event work