Repleacing method .map with .select