add ellipsis
prevent to type is null