script corrected