cleaning up metadata related header