You can use `var` here and remove the declaration of `resolution` on line 182.