graph collapse added