first version of the script