creation of the Thread part