change open file struct