Replace map3 by map