research st, rename variable thread to trd, for thread is a keyword.