updated the diff method to explicity set the format to text