index was not working for instance need to use ids instead