added print function to PrimaryGeneratorAction