coderefactoring for pep8