first version of script