update get value function