updating contract