add tooltip for pattern=