class vs flag state ro