remove script index