change generic detector to specific detector