lots of modification for latex