added set value function