fixing typo and code style