fixed code style and typo