added latex stuff