working on plot script