add write to file