modified winner algorithm with in/notIn property