pep8 compliance
added a little more diagnostics