removing events with flag