typo fix and delete unused private method