updated scripts with function name changes to correct assignment