3 select logic works