emit set! properly