modifying (8)
(Other definitions for adapting that I've seen before include "Altering to fit another purpose" , "Changing to suit a new purpose" , "Adjusting to suit a new use" , "Changing to fit new circumstances" .)
'modifying' is the definition.
(I've seen this before)
This is all the clue.
(Other definitions for amending that I've seen before include "Altering for the better" , "reforming" , "Changing situation" , "Modifying" , "Correcting" .)