formatted code
formatted code to partially match pep8 requirements