adding plotting script