improving plotting speed 2