now can select agreement function