edited index according to changed filename