add func to remove class geneology