added flag field