file writer update