debugging collapse