added dennis' plot speed fix