adding detector