fixing mathematica file