flag variables to uints