index almost done