added index
added template