if this is really supposed to be a `const` define it outside of the promise+function