cheap thread collapsing