add the clear data function before we have incremental data mechanism