some corrections in the script