added double and triple dictionaries for amending offers. refactored.