added select method for vectors