add template to the base