patch for main_bits*