adding utils.map method
replace .map with utils.map