trying to improve the quick plot functionality