optimizing the equalizer