de-bugging the edit algorithm since it multiply the updated data