add default phrase and made some refactoring.