new function to map to value function callback