improve setvalue for select