trimming the manifest