refactoring central class