indexing wasnt working