pmap in distances