updated script files with corrected code