1st version of script