the stages of formation