linting passes with no errors, add small functions