cleaning up how the files are output