update to latex code