update contract file