[scjp] little refactoring