added flag error