corrected scripts