renamed getOldData to getChangedData