updated return type, fixed typo