update custom $$...$$