Use "collect" rather than "map"