masking in 2dx_peaksearch adapted