renamed findStems to stemDetection