updating plotting script