made things a little neater in PrimaryGeneratorAction