corrected script