fixed syntax and typo errors