substituted map with each