initial selection logic