refactor Metaphone