add flagged state