refactored according to PEP8