final cleanup of bib