pep8
bug fixed
thread bug fix