creates a flag