update templates to use instance variables