added more linting & testing
fixed variable name