refine detector