update for learning