add value function to element