Waupaca modifies agreement with city attorney