proper inheritance