the clearstage training code