refactoring index in world and color files