worked with index template