remove unused var
don't pass an empty object
code style: hoist vars
code style: remove weird whitespace