added latex stuff back in