minor changes about threads