translate the ROI finding in code (from prototype)