update constract