updated index
wrong code