made index from template to not lose it