two graphs for cases 2 and 3