updated: flag condition