added initializer template
updated index to use new template