updated return type, typo fixed