trying to figure out how to save a file