updated the listener