export the emitting function