use variable for name in templates for modvar