updated script and some typo