stock polymorphic and get_all_polymorphic function added