improve algorithm in mute mode