add write to two files