formatting changes and header output