update to changes in write.table