alphabet refactor