define as method, checked conformance to flake8