refactoring transition-related examples