finalizing headers