select method works