add var as suggested by @sindresorhus