fixed up template basis