linter says that hoisting is confusing