error in script corrected