implemente windows select