how does collapse work?