@param diff  an edit list