first iteration of the script