check to see if doc actually modified before sending