implemented the new graphs