simplify setValue