doing global 39444 x 39444 matrix and saving to file