add superof and childof class check