optimized margins