set stock optimizations