made everything ready for detections as well