added a function for accessing detections