upg: change return value of map function

return value is a float