How the environment influences reproductive function and competency across multiple generations