index script updated