changed to printing percentage instead of index