refine event sequence