removed __getDescriptor function