made adjustments to select() method for multiple select