changed finalscript