Instead of pmap, use mapv.