removes template from index, add scattering to index.