added the BackGroundDetector