refine failed case