working on plot4