renamed to PoreDetection