updated latex script