handle TGraph properly