updated pledges model and controller