-optimize inheritance