got the index to work