changed index to use template