mask mode: consecutive charchter optimization