working with selects (not functional)