small changes to the better on index