adjusted code for pep8 standard