delete unnecessary script code