add base for template