reimplemented map.
attempting multi-way LCM.