working on file delegate