final edit of files and directory