fix for inheritance