update tool of contract