update data flag in the command