modified header of Data to support flag1 and prepareFlag