trying to write updated location to new file