add a tooltip that displays type