delegating the update attribute to the repo