it reads and writes without error! but not in the correct order / format