use partial application and remove <- operator from pmap