Revert "Change pmap to map"

This reverts commit ba2574dc35abc14247a2280b6e3cfb74b9b5c37b.