makes easy to create detectors