updated index so it can fetch query