added flag var