add commented impl of coalescedMap