don't render the lengeds if the type is null