added vec and dpi and changed graph type