add object subclass to fix error