fixed wrong indentation
refactored the new builder to use method buildthread