added latex ability