rewrote the agree to terms