update the origin