the indentation in this function is also not pep8