improve the method of set select fields