rename also the detectors in macro