reorganizes the file, test 1