fix for subclass