add pthread
i don;t know add what
adjust woods length