cleaning up file struct