linting and new function