needle in a haystack switch