do these two lines at the very start of the function (so that if we have an error we still do them; or if we add an early return later)