fixed typo and semantics