minor tweak for setvalue