put vars in template