vm and template models