tweaks to make this run better for multiple stocks