updating listen callback