optimizations and new math stock