removed bad writefile from erase