first iteration of script