working version of the multi-step-selection