build functionality to create twines