some changes to make code by pep8 rules