new way to train learning algorithm