change polymorphic extraction behavior