forgot to change map to pmap and wrap in doall