change index for use the new template and kernel