refactor for threading

is that a space at the beginning of the line?!