change to map for inheritance graph