whitespace fixed. threading throwing errors tho