update and take a restrat