more separation of template index