added first vesion of script