add clear data method.