changed variable name in map
function