trying to make the file end up in the right spot