add emit method.