collapse tree but with bugs