use a join rather than a map