turns out there's a helper for that