remove related class pointers