saving file added to main