close to functional index.tpl