improved index template