fixed code typo errors