got tooltips to work but d is not defined ?wtf?