Changed index to template
Changed index