implemented index template