moving the print out into the `diff` header line case (out of the `else`) fixed it for the most part.