modify ndex file