fixes bug introduced by reformatting to fix linting. tests passing.