add type for text