edit file construction