don't you need to combine this one with the previous value of `flags`?