updating main script