minor refactoring.
Made alphabet an optional argument.