cleanup chain complexes