adding tempates - indexing