refactoring with the PEP8 convention