script ammended