changed the inheritance