updating quick_select method