adding threads back in
refactoring