paramaterized marble_detection, shell of condensation implemented