rename
write to file