update val setter
Revert "update val setter"

This reverts commit 1838ec43dbbbbced4df76660f443a067b61efe67.