models: solved an inheritance problem