new clearStage function