update select by class mechanism