endogenous and exogenous factors