changed chain of inheritance