code was not reading in original .dat file for some reason, (must of deleted this line when cleaning up the code. added the line back