removed write file