used pmap instead of map