index template debuged.