fixed get_useful_events