updates select method