use correct class instance