fixed parallel optimizations