displaying graph