fixing bellman update