updated index to fix row issue