fixing latex stuff