added setCustomVar method