updated deplot script