finished amend offers code