fix for subclassing