upgrade of class logic