fixed several syntax errors.