made index have reverse order
fixed one thing
small change
should really test these out before commiting