almost finished on index design