edit doc and edit file function alter