optimized modulus weights