changed the name of functions  according to pep8