index modification to match the template