refine detections