updated function description comment for extractChanges