new fix for inheritance