trying to get index to work