fix for subclasses