mofidy selection logic