refactoring function steady_state_reproduction!(