changed nParton to Int