thread assignment done