more code improvements using a linter