this one is called after each  completed training