fixed errors and typo