upgrade class and method