22 templates changed to multidimensional array