added select method