what if we use thread ?