change the mechanism of the listener.