updating insert and file updates