oit writes to a file, but it writes the arrays