added parameters to emit