correct selection logic