update to file