fixed subclass not working on non-classes