prints new output and diff (or nothing if diff is empty)