flag system: setting flag