remove redundant threads