adding the cpp file to check for detection