updated the script