cleanup: prefer map over explicit reduce