updating QLearning