[algorithm][Kashish]handling no pref option while matching