change to index
fix previous error