leared how to use pmap properly(by using partition-all)