virtue of an agreement