initial training code complete