training and learning updates