added loop in stageout