emit on define