fixed typo in public method