improving master index generation