changed tes to detector in crimson