try to organise the index