made emitter create function swappable.