make some adjustments to index