add two listeners