finalizing header