index on templates