if "type" in kwargs:
            if kwargs["type"] is not None:
                type = kwargs["type"]