detection finished