same goes for the `#update` function - let's shorten this one up if we can