triparty agreement