make code put state NAMES in selector if they exist