more consistent template variable definition