made it append file not write.