function now has an argument for the actual sim_matrix file, not just the directory that file is in