corrected for cycle for pep8 compliance