if flag mask and flag value is identical, only one value is saved within the flag