changing the way it adds a file.