update select method