added flagging