making model class compatible with parent.