changed index to use partials