add generate delete and data file method