fixing typo and missing @throws